package com.billdowney.util.request;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: RequestUserAgentClientMap
 * @Description: 客户端请求的包含的UserAgent中对应的客户端类型
 * @author 超级小富翁 - BillDowney
 * @date 2018年4月13日 下午5:03:44
 */
public class RequestUserAgentClientMap {

	public static Map<String, String> userAgentMap = new HashMap<>();

	static {
		// Windows
		userAgentMap.put("Windows NT 10.0", "Windows 10");
		userAgentMap.put("Windows NT 6.4", "Windows 10");
		userAgentMap.put("Windows NT 6.3", "Windows 8.1/2012 R2");
		userAgentMap.put("Windows NT 6.2", "Windows 8/2012");
		userAgentMap.put("Windows NT 6.1", "Windows 7/2008");
		userAgentMap.put("Windows NT 6.0", "Windows Vista/2008");
		userAgentMap.put("Windows NT 5.2", "Windows 2003");
		userAgentMap.put("Windows NT 5.1", "Windows XP");
		userAgentMap.put("Windows NT 5.0", "Windows 2000");
		// MAC
		userAgentMap.put("Mac OS X", "Mac OS X");
		// IOS
		userAgentMap.put("iPad", "iPad");
		userAgentMap.put("iPhone", "iPhone");
		userAgentMap.put("iPod", "iPod");
		// Android
		userAgentMap.put("Android", "Android");
		// Windows Phone
		userAgentMap.put("Windows Phone", "Windows Phone");
		// BlackBerry
		userAgentMap.put("BlackBerry", "BlackBerry");
	}

}
